<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的网页</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f4f4f4;
        }
        
        .container {
            width: 80%;
            margin: 0 auto;
            overflow: hidden;
        }
        
        header {
            background: #35424a;
            color: white;
            padding-top: 30px;
            min-height: 70px;
            border-bottom: #e8491d 3px solid;
        }
        
        header a {
            color: #ffffff;
            text-decoration: none;
            text-transform: uppercase;
            font-size: 16px;
        }
        
        header ul {
            margin: 0;
            padding: 0;
        }
        
        header li {
            float: left;
            display: inline;
            padding: 0 20px 0 20px;
        }
        
        header #branding {
            float: left;
        }
        
        header #branding h1 {
            margin: 0;
        }
        
        header nav {
            float: right;
            margin-top: 10px;
        }
        
        header .highlight, header .current a {
            color: #e8491d;
            font-weight: bold;
        }
        
        header a:hover {
            color: #cccccc;
            font-weight: bold;
        }
        
        .showcase {
    min-height: 400px;
    background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-4.0.3') no-repeat center center/cover;
    text-align: center;
    color: white;
    padding-top: 100px;
}
        .showcase h1 {
            font-size: 55px;
            margin-bottom: 10px;
            text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
        }
        
        .showcase p {
            font-size: 20px;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
        }
        
        .main-content {
            padding: 30px 0;
            background: #fff;
        }
        
        .content-box {
            background: #f4f4f4;
            padding: 20px;
            margin-bottom: 20px;
            border-radius: 5px;
        }
        
        .btn {
            display: inline-block;
            background: #e8491d;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            font-size: 18px;
        }
        
        .btn:hover {
            background: #333;
        }
        
        footer {
            background: #35424a;
            color: white;
            text-align: center;
            padding: 20px;
            margin-top: 20px;
        }
        
        @media(max-width: 768px) {
            header #branding,
            header nav,
            header nav li,
            .showcase h1 {
                float: none;
                text-align: center;
                width: 100%;
            }
            
            .showcase {
                padding-top: 50px;
            }
            
            .showcase h1 {
                font-size: 30px;
            }
        }
    </style>
</head>
<body>
    <header>
        <div class="container">
            <div id="branding">
                <h1><span class="highlight">我的</span> 网站</h1>
            </div>
            <nav>
                <ul>
                    <li class="current"><a href="#home">首页</a></li>
                    <li><a href="#about">关于</a></li>
                    <li><a href="#services">服务</a></li>
                    <li><a href="#contact">联系</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <section class="showcase">
        <div class="container">
            <h1>欢迎来到我的网站</h1>
            <p>这是一个现代化的响应式网页设计示例</p>
            <a href="#main-content" class="btn">了解更多</a>
        </div>
    </section>

    <section id="main-content" class="main-content">
        <div class="container">
            <div class="content-box">
                <h2>关于我们</h2>
                <p>这是一个展示网页设计的示例页面。页面包含了现代化的设计元素，响应式布局，以及良好的用户体验。</p>
            </div>
            
            <div class="content-box">
                <h2>我们的服务</h2>
                <p>我们提供高质量的网页设计和开发服务，专注于创建美观、功能强大的网站。</p>
                <ul>
                    <li>网页设计</li>
                    <li>前端开发</li>
                    <li>响应式设计</li>
                    <li>用户体验优化</li>
                </ul>
            </div>
            
            <div class="content-box">
                <h2>联系信息</h2>
                <p>邮箱: example@email.com</p>
                <p>电话: 123-456-7890</p>
                <p>地址: 某某街道 123 号</p>
            </div>
        </div>
    </section>

    <footer>
        <p>&copy; 2023 我的网站. 保留所有权利.</p>
    </footer>

        // 简单的交互效果
        document.addEventListener('DOMContentLoaded', function() {
            const buttons = document.querySelectorAll('.btn');
            
            buttons.forEach(button => {
                button.addEventListener('click', function(e) {
                    e.preventDefault();
                    alert('感谢您的关注！');
                });
            });
            
            // 平滑滚动效果
            document.querySelectorAll('a[href^="#"]').forEach(anchor => {
                anchor.addEventListener('click', function (e) {
                    e.preventDefault();
                    
                    const target = document.querySelector(this.getAttribute('href'));
                    if (target) {
                        window.scrollTo({
                            top: target.offsetTop - 70,
                            behavior: 'smooth'
                        });
                    }
                });
            });
        });
    </script>
</body>
</html>
